package de.unicornEntertainment.stundenplanapp.infos;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.webkit.WebView;
import android.widget.Button;

import com.actionbarsherlock.app.SherlockActivity;

import de.unicornEntertainment.stundenplanapp.R;


public class SchulinfosActivity extends SherlockActivity {

	// Globale Deklaration
	private WebView webview;
	
	/**
	 * Wird beim Start der Activity ausgeführt
	 */
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_schulinfos);
		
		// Titel der Activity setzen
		this.setTitle("Impressum");
		
		// Lokale Deklaration
		webview = (WebView) findViewById(R.id.infos_webView);
		webview.setBackgroundColor(0x00000000);
		
		// WebView konfigurieren
//		webview.getSettings().setJavaScriptEnabled(true);
//		webview.getSettings().setLoadWithOverviewMode(true);
//      webview.getSettings().setUseWideViewPort(true);
//      webview.getSettings().setBuiltInZoomControls(true);
//      webview.getSettings().setSupportZoom(true);
        webview.loadUrl("file:///android_asset/impressum.html");
	}
}
